$OpenBSD: patch-kdontchangethehostname_khostname_cpp,v 1.1 2014/02/04 15:25:44 zhuk Exp $
Distinguish KDE4 temporary directories.
--- kdontchangethehostname/khostname.cpp.orig	Tue Feb  4 14:49:11 2014
+++ kdontchangethehostname/khostname.cpp	Tue Feb  4 14:56:15 2014
@@ -160,8 +160,10 @@ void KHostName::changeX()
 void KHostName::changeStdDirs(const QByteArray &type)
 {
    // We make links to the old dirs cause we can't delete the old dirs.
-   QByteArray oldDir = QFile::encodeName(QString("%1%2-%3").arg(KGlobal::dirs()->localkdedir()).arg(QString( type )).arg(QString( oldName )));
-   QByteArray newDir = QFile::encodeName(QString("%1%2-%3").arg(KGlobal::dirs()->localkdedir()).arg(QString( type )).arg(QString( newName )));
+   QByteArray oldDir = QFile::encodeName(KGlobal::dirs()->localkdedir()
+      + QString(type) + QString::fromLatin1("4-") + QString( oldName ));
+   QByteArray newDir = QFile::encodeName(KGlobal::dirs()->localkdedir()
+      + QString(type) + QString::fromLatin1("4-") + QString( newName ));
 
    KDE_struct_stat st_buf;
 
